package chapter_09_composite.p9_2;

/**
 * Created by CharloYao on 2017/3/6.
 */
public class Client {
    public static void main(String[] args) {
        Root rootC = new Folder("c://");
        Root rootD = new Folder("d://");

        Root win = new Folder("windows");
        Root sys = new Folder("system");

        Root file = new File("hello.java");

        rootC.add(sys);
        rootD.add(win);

        win.add(file);

        rootC.display();
        rootD.display();
    }
}
